package com.hospital.doctor.controller;

import com.github.pagehelper.PageHelper;
import com.hospital.doctor.pojo.CheckTable;
import com.hospital.doctor.service.CheckTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.Servlet;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin
@RequestMapping("/checktable")
public class CheckTableController {

    @Autowired
    private CheckTableService checkTableService;

    @RequestMapping("/selectAll")
    public Map<String,Object> selectAll(){
        Map<String,Object> map = new HashMap<>();
        map.put("msg",checkTableService.selectAll());
        return map;
    }
}
